/*----------------------------------------------------------------------------------------
* Description:  Service Layer of the Database[EVegetable]'s Table[dbo.TSys_Re_AppMenu_AppAction].
* Author:       John ZHAO 
* Create Date:  6/14/2012
* History:      1. John ZHAO      Created
                2.
                3.
------------------------------------------------------------------------------------------
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EVegetable.Service
{
    using EVegetable.Domain;
    using EVegetable.Persistence;
    
	/// <summary>
	/// Service class of the Database[EVegetable]'s Table[dbo.TSys_Re_AppMenu_AppAction].
	/// </summary>
	public partial class TSys_Re_AppMenu_AppActionSvc
	{       
        /// <summary>
        /// Get All List
        /// </summary>
        /// <returns></returns>
        public List<TSys_Re_AppMenu_AppAction> GetAllList()
        {
            List<TSys_Re_AppMenu_AppAction> result = context.GetAll<TSys_Re_AppMenu_AppAction>().ToList();

            return result;
        }

        /// <summary>
        /// Get single item by key
        /// </summary>
        /// <param name="item">object single item</param>
        /// <returns></returns>
        public TSys_Re_AppMenu_AppAction GetByKey(TSys_User item)
        {
            TSys_Re_AppMenu_AppAction result = context.GetById<TSys_Re_AppMenu_AppAction>(item);

            return result;
        }

        /// <summary>
        /// Add item
        /// </summary>
        /// <param name="item">object single item</param>
        public void Add(TSys_Re_AppMenu_AppAction item)
        {
            context.Add(item);
        }

        /// <summary>
        /// Update Item
        /// </summary>
        /// <param name="item">object single item</param>
        public void Save(TSys_Re_AppMenu_AppAction item)
        {
            context.Save(item);
        }

        /// <summary>
        /// Delete Item
        /// </summary>
        /// <param name="item">object single item</param>
        public void Delete(TSys_Re_AppMenu_AppAction item)
        {
            context.Delete(item);
        }
	}

}
